package logic

import (
	"context"
	"fmt"

	"gateway/internal/svc"
	"gateway/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
)

type OemWebHookLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewOemWebHookLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OemWebHookLogic {
	return &OemWebHookLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *OemWebHookLogic) OemWebHook(req *types.OemReq) (*types.Oemresp, error) {
	// todo: add your logic here and delete this line
	var (
		resp types.Oemresp
	)
	fmt.Println("执行了")
	fmt.Println(req)
	resp.Allowed = true
	return &resp, nil
}
